package com.elitedatai.mchtest.wayline.model.entity;

import com.elitedatai.mchtest.common.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import jakarta.persistence.*;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "wayline_job")
@Entity
public class WaylineJobEntity extends BaseEntity implements Serializable {

    @Column(name = "job_id")
    private String jobId;

    @Column(name = "name")
    private String name;

    @Column(name = "file_id")
    private String fileId;

    @Column(name = "dock_sn")
    private String dockSn;

    @Column(name = "workspace_id")
    private String workspaceId;

    @Column(name = "task_type")
    private Integer taskType;

    @Column(name = "wayline_type")
    private Integer waylineType;

    @Column(name = "username")
    private String username;

    @Column(name = "execute_time")
    private Long executeTime;

    @Column(name = "end_time")
    private Long endTime;

    @Column(name = "error_code")
    private Integer errorCode;

    @Column(name = "status")
    private Integer status;

    @Column(name = "rth_altitude")
    private Integer rthAltitude;

    @Column(name = "out_of_control")
    private Integer outOfControlAction;

    @Column(name = "media_count")
    private Integer mediaCount;

    @Column(name = "begin_time")
    private Long beginTime;

    @Column(name = "completed_time")
    private Long completedTime;

    @Column(name = "parent_id")
    private String parentId;
}
